package com.xinxin.blockchain.constant;

import com.xinxin.base.entity.ResultCode;

/**
 * @author ys
 * @date 2021/5/18
 */
public interface ErrorCode extends com.xinxin.base.constant.ErrorCode {

    /**
     * 60000-60099 系统相关
     */
    ResultCode THIRD_SERVICE_CALL_ERROR = new ResultCode(60000, "第三方服务调用失败");
    ResultCode THIRD_SERVICE_RET_FAIL = new ResultCode(60001, "第三方服务返回失败");
    ResultCode CAPTCHA_NOT_VALID = new ResultCode(60002, "验证码错误");

    /**
     * 70000-70099 账户相关
     */
    ResultCode ACCOUNT_NOT_FOUND = new ResultCode(70000, "账户不存在");
    ResultCode ACCOUNT_IS_DISABLED = new ResultCode(70001, "账户已停用");
    ResultCode AUTHENTICATION_FAILED = new ResultCode(70002, "用户名或密码错误");

    /**
     * 70100-70199 资产相关
     */
    ResultCode ASSET_TYPE_NOT_EXIST = new ResultCode(70100, "资产类型不存在");
    ResultCode ASSET_NOT_FOUND = new ResultCode(70101, "账户资产不存在");
    ResultCode ASSET_DUPLICATE = new ResultCode(70102, "资产记录重复");
    ResultCode ASSET_NOT_ENOUGH = new ResultCode(70103, "账户资产余额不足");
}
